//储存[在Message3页面调用]
const STORAGE_KEY = 'todos-vuejs'
export default {
  fetch() {
    return JSON.parse(window.localStorage.getItem(
      STORAGE_KEY || '[]'
    ))
  },
  save(items) {
    window.localStorage.setItem(STORAGE_KEY,JSON.stringify(
      items))
  }
}
